// 菜单模块
import axios from '../../utils/axios'

// 菜单树
export function menusTree() {
    return axios({
        url: '/api/admin/menusTree',
        method: 'get'
    })
}

// 新增
export function addMenu(data) {
    return axios({
        url: '/api/admin/addMenu',
        method: 'post',
        data
    })
}

// 修改
export function updMenu(data) {
    return axios({
        url: '/api/admin/updMenu',
        method: 'post',
        data
    })
}

// 删除
export function delMenu(data) {
    return axios({
        url: '/api/admin/delMenu',
        method: 'post',
        data
    })
}